package com.ushine.design.design.c_behavioral_pattern.h_state.a_practice;

public class Context {
    private State state;
    private int value;

    public void setState(State state) {
        this.state = state;
    }

    public void request() {
        //其他代码
        //调用状态对象的业务方法
        state.handle();
        //其他代码
    }
}
